SciChart.Drawing Assembly > System.Windows.Media.Imaging Namespace > WriteableBitmapExtensions Class > FillRectangle Method : FillRectangle(WriteableBitmap,Int32,Int32,Int32,Int32,Func<Int32,Int32,Int32>,BlendMode) Method
The WriteableBitmap.
The x-coordinate of the bounding rectangle's left side.
The y-coordinate of the bounding rectangle's top side.
The x-coordinate of the bounding rectangle's right side.
The y-coordinate of the bounding rectangle's bottom side.
The color.
The blend mode.
FillRectangle(WriteableBitmap,Int32,Int32,Int32,Int32,Func<Int32,Int32,Int32>,BlendMode) Method
Draws a filled rectangle. x2 has to be greater than x1 and y2 has to be greater than y1.
Syntax

Parameters

bmp
The WriteableBitmap.
x1
The x-coordinate of the bounding rectangle's left side.
y1
The y-coordinate of the bounding rectangle's top side.
x2
The x-coordinate of the bounding rectangle's right side.
y2
The y-coordinate of the bounding rectangle's bottom side.
colorCb
The color.
blendMode
The blend mode.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also